package com.sun.temp.controller;

import com.github.xingshuangs.iot.protocol.s7.enums.EPlcType;
import com.github.xingshuangs.iot.protocol.s7.service.S7PLC;

class Demo {
    public static void main(String[] args) {
        // 创建PLC对象
//        S7PLC s7PLC = new S7PLC(EPlcType.S200_SMART, "192.168.2.3");
//        // 读 int
//        long int16Data = s7PLC.readUInt16("V1003");
//
//        // 写 int
//        s7PLC.writeInt16("V1000", (short)8);
    }
}